<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>Users</title>
</head>

<body>
<h1>User List</h1>

<div th:if="${not #lists.isEmpty(userList)}">

    <table>
        <tr>
            <th>Name</th>
        </tr>
        <tr th:each="user : ${userList}">
            <td>
                <p th:text="${user.userName}"/>
            </td>
        </tr>
    </table>
</div>

<p>
    <a href="/">Back to Home</a>
</p>
<form th:action="@{/logout}" method="post">
    <input type="submit" value="Sign Out"/>
</form>
</body>

</html>